package com.youlai.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.system.model.bo.AirPlaneBo;
import com.youlai.system.model.entity.AirPlane;
import com.youlai.system.model.query.AirPlaneQuery;
import com.youlai.system.model.vo.AirPlaneVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * @version 1.0
 * @Author Ricardo
 * @Date 2024/10/24 10:14
 * @注释
 * 飞机信息
 */
@Mapper
public interface AirPlaneMapper extends BaseMapper<AirPlane> {

    /**
     * 获取机型管理分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return
     */
    Page<AirPlaneVO> getAirPlanePage(Page<AirPlaneVO> page, AirPlaneQuery queryParams);

    //获取空闲飞机分页
    Page<AirPlaneBo> getPlaneNotFly(Page<AirPlaneBo> page, AirPlaneQuery queryParams);

    AirPlane getPlaneById(long planeId);
}
